package com.aistar.controller;

import com.aistar.util.Code;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Controller
public class CodeController {

    @RequestMapping("/getCode")
    public void validateCode(String time,HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        Code.getCode(request, response);
    }
}
